import 'package:daoyi_ui_admin_getx/app/routes/app_pages.dart';
import 'package:daoyi_ui_admin_getx/app/widgets/page_content.dart';
import 'package:flutter/material.dart';

import 'package:get/get.dart';

import 'not_found_controller.dart';

class NotFoundView extends GetView<NotFoundController> {
  const NotFoundView({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text("404"),
        centerTitle: true,
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            const Text("您访问的页面不存在！"),
            ElevatedButton(
              onPressed: () {
                Get.offAllNamed(AppPages.INITIAL);
              },
              child: const Text('返回首页'),
            ),
          ],
        ),
      ),
    );
  }
}
